package com.feifan.oa.domain;

import com.feifan.common.annotation.Excel;
import com.feifan.common.core.domain.BaseEntity;
import com.feifan.system.domain.SysUser;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 请假对象 tb_leave
 * 
 * @author 非凡
 * @date 2020-07-04
 */
public class Leave extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 流程类别名称 */
    @Excel(name = "流程类别名称")
    private FlowCategoryInfo flowCategoryInfo;

    /** 用户 */
    private SysUser sysUser;

    /** 请假天数 */
    @Excel(name = "请假天数")
    private Integer leaveDays;

    /** 开始时间 */
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date beginDate;

    /** 结束时间 */
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date finishDate;

    /** 请假原因 */
    private String reason;

    /** 审批状态 */
    @Excel(name = "审批状态")
    private Integer status;

    /** 创建时间 */
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    /**
     * 请假证明
     */
    private String picture;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public FlowCategoryInfo getFlowCategoryInfo() {
        return flowCategoryInfo;
    }

    public void setFlowCategoryInfo(FlowCategoryInfo flowCategoryInfo) {
        this.flowCategoryInfo = flowCategoryInfo;
    }

    public SysUser getSysUser() {
        return sysUser;
    }

    public void setSysUser(SysUser sysUser) {
        this.sysUser = sysUser;
    }

    public Integer getLeaveDays() {
        return leaveDays;
    }

    public void setLeaveDays(Integer leaveDays) {
        this.leaveDays = leaveDays;
    }

    public Date getBeginDate() {
        return beginDate;
    }

    public void setBeginDate(Date beginDate) {
        this.beginDate = beginDate;
    }

    public Date getFinishDate() {
        return finishDate;
    }

    public void setFinishDate(Date finishDate) {
        this.finishDate = finishDate;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getPicture() {
        return picture;
    }

    public void setPicture(String picture) {
        this.picture = picture;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("flowCategoryInfo", getFlowCategoryInfo())
            .append("sysUser", getSysUser())
            .append("leaveDays", getLeaveDays())
            .append("beginDate", getBeginDate())
            .append("finishDate", getFinishDate())
            .append("reason", getReason())
            .append("status", getStatus())
            .append("createDate", getCreateDate())
            .append("picture", getPicture())
            .toString();
    }
}
